package com.css.bjdt_core.explain.entity;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Table;

import lombok.Data;

//报表说明表
@Data
@Table("RPT_TEMPLATE_EXPLAIN")
public class RptTemplateExplain {
	@Name
	@Column("ID")
	private String id;

	@Column("TEMPLATE_EXPLAIN_NAME")
	private String templateExplainName;

	@Column("TEMPLATE_ID")
	private String templateId;

	@Column("EXPLAIN_TYPE")
	private String explainType;

	@Column("ANNUAL_ID")
	private String annualId;

	@Column("ORDER_ID")
	private int orderId;

	//列
	@Column("TEMPLATE_COL")
	private String templateCol;

	//行
	@Column("TEMPLATE_ROW")
	private String templateRow;

	//不参加校核是1，参加校核是2
	@Column("IS_VALIDATION")
	private String isValidation;

	//导出EXCEL用到的SQL
	@Column("EXPORT_EXCEL_SQL")
	private String exportExcelSql;

	//报表说明的列数
	@Column("EXPORT_EXCEL_LENGTH")
	private String exportExcelLength;

	public enum explainType {
		//条目
		entry("1"),
		//数字
		number("2"),
		//文本
		textStr("3");

		private String key;

		explainType(String key) {
			this.key = key;
		}

		public String getKey() {
			return key;
		}
	}
}
